//
//  ViewController.swift
//  iot-webview
//
//  Created by hech on 2024/11/6.
//

import UIKit

class ViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        let bt = UIButton.init(frame: CGRectMake(0, 0, 200, 100))
        self.view.addSubview(bt)
        bt.center = self.view.center
        bt.setTitle("webView容器", for: .normal)
        bt.addTarget(self, action: #selector(btnClick), for: .touchUpInside)
    }

    @objc func btnClick(_ sender: Any) {
        let vc = WebViewViewController()
        self.navigationController?.pushViewController(vc, animated: true)
    }
    
}

